Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 31: Creating New Node Types

../ch31/31fig03.gif
Figure 31.3

A world that uses an externally declared node type.

31fig03.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
EXTERNPROTO WallColor [ ] "matlib.wrl#WallColor"

Shape {
    appearance Appearance {
        material WallColor { }
    }
    geometry Box { size 10.0 2.0 0.1 }
}